Sort By:<select id="select_sort_params" name="sort_params" onchange="include_sort_option(this)">
    <option value="">Default</option>
    {{foreach from=$sort_params item=p}}
    <option value="{{$p->id}}{{if $p->option<>""}}:{{$p->option}}{{/if}}" {{if $selected_params|@count>0 && array_key_exists($p->id,$selected_params)}}selected{{/if}}>{{$p->label}}</option>
    {{/foreach}}
</select>

<script type="text/javascript">    
    function include_sort_option(me){
        var value = me.options[me.selectedIndex].value;
        include_param(value) ;
    }
</script>